<script setup lang="ts">
import { _require } from "@@/utils/tools";
import { fixedDecimals, omitText } from "@@/utils/tools/format";
import dayjs from "dayjs";
import { apiVccForexLogs } from "@@/api/transaction/list";
//code
</script>

<template>
  <CrequestList :api="apiVccForexLogs">
    <template #item="{ item }">
      <div class="MT-md">
        <Ccard class="clip-path-2 PD-xl auto-MT-sm" style="--clip-size: 60rem">
          <div class="flex-A-C">
            <Rimage
              size="80rem"
              :src="_require('src/assets/images/coin/usdt.png')"
            />
            <h2 class="ML-lg">
              {{ fixedDecimals(item.number) }}
            </h2>
          </div>
          <div class="C-M1-1">
            {{ dayjs(item.created_at).format("YYYY/MM/DD HH:mm:ss") }}
          </div>
          <CcopyText :copy-text="item.txid" class="C-M1-1">
            {{ item.txid || "---" }}
          </CcopyText>
        </Ccard>
      </div>
    </template>
  </CrequestList>
</template>

<style lang="scss" scoped></style>
